import request from '@/utils/request'

// 获取input下拉表单
export function getLabelInputAPI(params) {
    return request({
      url: '/subject/tree',
      method: 'get',
      params
    })
  }

  // 获取页面表单
export function getLabelAPI(params) {
    return request({
      url: '/subject/tag',
      method: 'get',
      params
    })
  }

  // 增
  export function addLabelAPI(data) {
    return request({
      url: '/subject/tag',
      method: 'post',
      data
    })
  }

    // 改
    export function putLabelAPI(id,data) {
      return request({
        url: '/subject/tag/' + id,
        method: 'put',
        data
      })
    }

  // 回显
  export function editLabelAPI(id) {
    return request({
      url: '/subject/tag/' + id,
      method: 'get',
      
    })
  }

  // 删
  export function deleteLabelAPI(id) {
    return request({
      url: '/subject/tag/' + id,
      method: 'delete',
      
    })
  }